﻿@using nanoCMS.Core
@using nanoCMS.Core.Membership
@using nanoCMS.Core.WebProviders.HtmlHelpers
@model nanoCMS.Core.WebProviders.ViewModels.WebDisplayVM
@{
    ViewBag.Title = Model.Title;
}


<header id="header-small">
    <div class="header-container">
        <div id="logo">
            <h1>
                <a href="@Html.UrlInnerHome()">
                    <img src="@Url.Content("~/Content/images/logo.png")" width="200" height="67" alt="Burza transporta"></a>Burza
                transporta</h1>
        </div>
        <!-- end logo -->
        @if (!SessionManagerBase.IsAuthenticated)
		  {

		  	<div id="loginContainer">
				<a href="#" id="loginButton"><span>Login</span></a>
				<div style="clear: both"></div>
				<div id="loginBox">                
					@{ Html.RenderAction("Login", "User", new {area = "Core"}); }
				</div>
			</div>
		  } else
		  {
            
            <div id="logout">
        	
                <span class="btn-logout">@Html.ActionLink("Logout", "Logout", "User", new { area = "Core", returnUrl = Html.UrlInnerHome() }, new {})</span>
            
            </div><!-- end logout button -->
        
            <div id="user">
        	    <span class="btn-user">@Html.Link( SessionManagerBase.CurrentUser.GetDisplayName() , "MojiOglasi", new object(), new object())</span>
                <span class="btn-currency"><a href="#">
                    @{Html.RenderAction("GetUserCredits", "UserCredit", new {area="Burza"}); }
                </a></span>
            </div>
        }
            <!-- Login Ends Here -->


      @Html.Display(Model.Navigation)
        



    </div>
    <!-- end header-container -->
</header><!-- end header -->



<section id="content-wrap">
    <div class="container">
        @Html.Display(Model.Main)
    </div>
    <!-- END container -->
</section>
<!-- END content-wrap -->


<footer id="footer">
    <section class="footer-container">
        <div id="copyright">
            <p>
                &copy; Copyright 2011. All Rights Reserved.</p>
            <div id="back-top">
                <p>
                    You can also find me on <a href="http://twitter.com/#!/GeneMaytak">Twitter</a> &amp;
                    <a href="http://www.facebook.com/pages/Genem-Studios/110017182362498">Facebook</a>.
                    <a href="#top">Back to top</a></p>
            </div>
            <!-- end back top -->
        </div>
        <!-- end copyright -->
    </section>
    <!-- end container -->
</footer><!-- end footer small -->
